package com.day12_Thread.Getmoney;

/**
 * @ClassName: MyThread
 * @Author: zw
 * @Description: 出百万拳，行万里路；
 * @Create 2025/4/5-22:19
 * @Version 1.0
 */
public class MyThread extends Thread{
    private Account acc;
    public MyThread(String name, Account acc) {
        super(name);
        this.acc = acc;
    }

    @Override
    public void run() {
        acc.getmoney(100000);
    }
}
